﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Artemis;

namespace JAWWS
{
    class Ball
    {

        public float posX, posY, posZ = 0;
        public uint texID;
        //Renderer ballRender;
       public GLUquadric ball;

        public Ball()
        {
            
            ball = GLU.gluNewQuadric();
            GLU.gluQuadricDrawStyle(ball, GLenum.GLU_FILL);
            GLU.gluQuadricTexture(ball, GLenum.GL_TRUE);
          
            LoadTex();
            GL.glBindTexture(GLenum.GL_TEXTURE_2D, LoadTex());
             
            
        }



        public uint LoadTex()
        {

            return texID  = Toolkit.LoadTexture("C:\\Basketball.bmp", 0, ChannelType.RGBA, TextureFlag.Mipmaps);
            
        }

        public void draw()
        {
            Color color = new Color(1.0f, 0.0f, 0.0f, 1.0f);
            GLU.gluSphere(ball, 0.25, 50, 50);        
           


        }

    }
}
